package com.dingup.mock.dao.listening;


import com.dingup.mock.bean.base.ArticleOrder;
import com.dingup.mock.bean.listening.TsListeningArticle;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * Created by yanggavin on 16/4/12.
 */
@Mapper
public interface TsListeningArticlesMapper {
    Boolean add(TsListeningArticle tsListeningArticle);
    Boolean update(TsListeningArticle tsListeningArticle);
    Boolean delete(TsListeningArticle tsListeningArticle);
    TsListeningArticle getBySubjectNameAndArticleNum(Map<String, Object> param);
    TsListeningArticle getById(Integer id);
    List<TsListeningArticle> getListBySubjectName(String subjectName);
    List<TsListeningArticle> getList();
    Boolean existArticle(TsListeningArticle article);
    List<TsListeningArticle> getAllSubjectName();
    List<String> getAllRealTestName();

    /**
     * 作业获取听力文章信息
     *
     * @return
     */
    List<ArticleOrder> getTPORealTestSubjectName();

    /**
     * 获取全部
     *
     * @return
     */
    List<ArticleOrder> getAllTPORealTestSubjectName();

}
